import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-10-28
 * Time: 22:18
 */
interface Motor
{
    public static float power=100;
    public static float carrier=100;
    public void transport();
}
class Factory {
    public String name;
    public static Motor createMotor(String name){
        if (name.equals("火车")){
            Train train = new Train(30,20);
            return train;
        }
        else if (name.equals("汽车")){
            Car car = new Car();
            return car;
        }
        else if(name.equals("拖拉机")){
            Tuolaji tuolaji = new Tuolaji();
            return tuolaji;
        }
        return null;
    }
}
class Train implements Motor{
    public int time;
    public int jie;

    public Train(int time, int jie) {
        this.time = time;
        this.jie = jie;
    }

    @Override
    public void transport() {
        System.out.println("车次为"+time+"，节数为："+jie+"的火车开始进行货物运输。");
    }
}
class Tuolaji implements Motor{

    @Override
    public void transport() {
        System.out.println("拖拉机在耕地\n" +
                "拖拉机开始进行货物运输。");
    }
}
class Car implements Motor{

    @Override
    public void transport() {
        System.out.println("汽车开始进行货物运输。");
    }
}

public class Main
{
    public static void main(String args[]){
        Scanner scan=new Scanner(System.in);
        String name;
        name=scan.next();
        Motor m=Factory.createMotor(name);
        if(m==null)
            System.out.println("没有此类车。");
        else
            m.transport();
    }
}